<%@ Register TagPrefix="skm" Namespace="FAQControls" Assembly="FAQControls" %>
<%@ Page language="c#" Codebehind="ModerateFAQs.aspx.cs" AutoEventWireup="True" Inherits="Adge.Web.Faq.Admin.ModerateFAQs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>skmFAQs.NET :: ModerateFAQs</title>
		<LINK href="../FAQstyle.css" type="text/css" rel="stylesheet">
			<meta http-equiv="Refresh" content="60; ModerateFAQs.aspx">
	</HEAD>
	<body MS_POSITIONING="FlowLayout">
		<form id="Form1" method="post" runat="server">
			<p>
				<skm:LoginPanel id="LoginPanel1" runat="server" cssclass="faq_logout"></skm:LoginPanel></p>
			<h1>Moderate FAQs</h1>
			<div class="faq_breadcrumb"><a href="Default.aspx">skmFAQs.NET Administration</a> &gt; 
				Moderate FAQs</div>
			<p><asp:DataGrid id="dgCategories" runat="server" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px"
					BackColor="White" CellPadding="4" AutoGenerateColumns="False">
					<SelectedItemStyle Font-Bold="True" ForeColor="#663399" BackColor="#FFCC66"></SelectedItemStyle>
					<ItemStyle ForeColor="#330099" BackColor="White"></ItemStyle>
					<HeaderStyle Font-Bold="True" ForeColor="#FFFFCC" BackColor="#990000"></HeaderStyle>
					<FooterStyle ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
					<Columns>
						<asp:TemplateColumn HeaderText="Category">
							<ItemTemplate>
								<%# Adge.UI.WebControls.DGHelpers.DisplayDepth(FAQComponents.InvariantString.ToInt32(DataBinder.Eval(Container.DataItem, "Depth").ToString())) %>
								<asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>' NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.CategoryID", "ModerateFAQsCategory.aspx?ID={0}") %>'>
								</asp:HyperLink>
							</ItemTemplate>
						</asp:TemplateColumn>
						<asp:TemplateColumn HeaderText="FAQs Needing Approval">
							<ItemStyle HorizontalAlign="Right"></ItemStyle>
							<ItemTemplate>
								<%# FAQComponents.API.FAQAPI.GetNumberOfUnapprovedFAQPartsForCategory(FAQComponents.InvariantString.ToInt32(DataBinder.Eval(Container.DataItem, "CategoryID").ToString())) %>
							</ItemTemplate>
						</asp:TemplateColumn>
					</Columns>
					<PagerStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></PagerStyle>
				</asp:DataGrid></p>
		</form>
	</body>
</HTML>
